package org.polyforms.repository.strategy;

/**
 * Strategy of resolving entity's class from repository class.
 * 
 * @author Kuisong Tong
 * @since 1.0
 */
public interface EntityClassResolvingStrategy {
    /**
     * Resolve entity's class from repository class.
     * 
     * @param repositoryClass which stores entity instance
     * 
     * @return entity's class for repository or null if entity class cannot be resolved.
     */
    Class<?> getEntityClass(Class<?> repositoryClass);
}
